GetSnapshotRequest

data class GetSnapshotRequest(computedStyleWhitelist: List<String>, includeEventListeners: Boolean?, includePaintOrder: Boolean?, includeUserAgentShadowTree: Boolean?)

Represents request frame that can be used with DOMSnapshot#getSnapshot operation call.

Returns a document snapshot, including the full DOM tree of the root node (including iframes, template contents, and imported documents) in a flattened array, as well as layout and white-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is flattened.

See also

Constructors

GetSnapshotRequest
Link copied to clipboard
fun GetSnapshotRequest(computedStyleWhitelist: List<String>, includeEventListeners: Boolean? = null, includePaintOrder: Boolean? = null, includeUserAgentShadowTree: Boolean? = null)

Properties

computedStyleWhitelist
Link copied to clipboard
val computedStyleWhitelist: List<String>
Whitelist of computed styles to return.
includeEventListeners
Link copied to clipboard
val includeEventListeners: Boolean? = null
Whether or not to retrieve details of DOM listeners (default false).
includePaintOrder
Link copied to clipboard
val includePaintOrder: Boolean? = null
Whether to determine and include the paint order index of LayoutTreeNodes (default false).
includeUserAgentShadowTree
Link copied to clipboard
val includeUserAgentShadowTree: Boolean? = null
Whether to include UA shadow tree in the snapshot (default false).

Sources

jvm source
Link copied to clipboard